
<script type="text/javascript">


$(document).ready(function(){

	$.ajax({
	    url:"${pageContext.request.contextPath}/imagen.action?oper=cargarImagen",
	    success:function(responseText, statusText) {

	                var decs = eval(responseText);
	         var rutaJSP = decs.ruta;
	        // alert(rutaJSP);
	         $("#miImage").attr("src","${pageContext.request.contextPath}" + rutaJSP);   

	    },
	    dataType:'JSON'
	});

	
});






</script>


<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<title>Insert title here</title>
</head>
<body>

<h1>imagen</h1> <img id="miImage" alt="imagen" src="x"> 

</body>
</html>